//
//  Public.h
//  EarnBao
//
//  Created by iMac on 15/9/23.
//  Copyright (c) 2015年 杭州赚宝科技有限公司. All rights reserved.
//

#ifndef EarnBao_Public_h
#define EarnBao_Public_h
#import "MBProgressHUD.h"
//系统颜色
#define WHITE_COLOR [UIColor whiteColor]
#define RED_COLOR [UIColor redColor]

#define kNAV_HEIGHT 40.0

//常用字体
#define FONT_DEFAULT10 [UIFont systemFontOfSize:10]
#define FONT_DEFAULT12 [UIFont systemFontOfSize:12]
#define FONT_DEFAULT13 [UIFont systemFontOfSize:13]
#define FONT_DEFAULT15 [UIFont systemFontOfSize:15]
#define FONT_DEFAULT18 [UIFont systemFontOfSize:18]
#define FONT_DEFAULT21 [UIFont systemFontOfSize:21]
#define FONT_DEFAULT24 [UIFont systemFontOfSize:24]

/*****************************全局变量********************/
#define MODEL_VERSION [[UIDevice currentDevice].systemVersion floatValue]
#define IsIOS7 ([[[[UIDevice currentDevice] systemVersion] substringToIndex:1] intValue]>=7)
#define IsIOS8 ([[[[UIDevice currentDevice] systemVersion] substringToIndex:1] intValue]>=8)

#define iPhone4      ([UIScreen mainScreen].bounds.size.height == 480)
#define iPhone5      ([UIScreen mainScreen].bounds.size.height == 568)
#define iPhone6      ([UIScreen mainScreen].bounds.size.height == 667)
#define iPhone6P     ([UIScreen mainScreen].bounds.size.height == 736)

/********************ios的3.5，4.0适配操作***************************/
#define kMainScreen_Height [UIScreen mainScreen].bounds.size.height
#define kMainScreen_Width [UIScreen mainScreen].bounds.size.width
#define kMainScreen_Bounds CGRectMake(0.0f, 0.0f, kMainScreen_Width, kMainScreen_Height)


#endif
